
public class CopperMember implements Membership
{
   private CustomerAccount _account;
   private static double discountRate = 0.1; 
   private static double daysRent=1;
   public CopperMember(CustomerAccount account)
   {
      _account = account;
   }
   
   public void setDiscountRate(double discount)
   {
      discountRate = discount;
   }
   
   public double getDiscountRate()
   {
      return discountRate;
   }
   
   public double calculatePayment(double price)
   {
      return price - (price * discountRate);
   }
   
   public void upgradeMembership()
   {
      System.out.println("Upgrading to Silver Membership.");
      _account.setMembership(new SilverMember(_account));
   }
   
   public void downgradeMembership()
   {
      System.out.println("Cannot downgrade membership any lower.");
   }
   public double calculateLatePayment(int days)
	{
		if(days-daysRent>0)
			return days-daysRent;
		return 0;
	}
}
